

// PleaseRestWindow.h

// ToDo: a window to control PleaseRestQt.exe 's time
// Author: Steven
// Date: 2013/05/07

#ifndef PLEASERESTWINDOW_H
#define PLEASERESTWINDOW_H


#include <QString>
#include <QLabel>
#include <QWidget>
#include <QPushButton>
#include <QVBoxLayout>
#include <QTimer>
#include <QTextCodec>
#include <QPalette>
#include <QColorGroup>
#include <QWindowsStyle>
#include <QSpinBox>


class PleaseRestWindow : public QWidget{
	
	Q_OBJECT
	
	
	public:
		PleaseRestWindow();
		virtual ~PleaseRestWindow();
        int getInterval();
		
	public:
		QPushButton *quitButton;

	private:
		QLabel *notifyLabel;
		QLabel *timeLabel;
		QSpinBox *timeSpinBox;
		QPushButton *okButton;
		QPalette quitButtonPalette;
		
		
		QHBoxLayout *setLayout;
		QHBoxLayout *timeSetLayout;
		QVBoxLayout *vBoxLayout;
		
		// buloon pop up interval
		int interval;   // in minute
		
};

#endif //PLEASERESTWINDOW_H
